<?php
/**
 * Created by PhpStorm.
 * User: Aliaksei Lazerka
 * Date: 10/22/14
 * Time: 6:01 PM
 */
?>
<script>
  window.onload = function () {
    $('#<?= $_GET['act']?>MenuItem').css('font-weight', 'bold');
  }
</script>

<div class="catalogMenu">
  <div class="catalogMenuItem" id="addRootMenuItem" onclick="location.href='?cat&act=addRoot'">
    <?= CatalogMenu::ADD_ROOT?>
  </div>
  <div class="catalogMenuItem" id="editRootMenuItem" onclick="location.href='?cat&act=editRoot'">
    <?= CatalogMenu::EDIT_ROOT?>
  </div>
  <div class="catalogMenuItem" id="addSubMenuItem" onclick="location.href='?cat&act=addSub'">
    <?= CatalogMenu::ADD_SUB?>
  </div>
  <div class="catalogMenuItem" id="editSubMenuItem" onclick="location.href='?cat&act=editSub'">
    <?= CatalogMenu::EDIT_SUB?>
  </div>
  <div class="catalogMenuItem" id="addProductMenuItem" onclick="location.href='?cat&act=addProduct'">
    <?= CatalogMenu::ADD_PROD?>
  </div>
  <div class="catalogMenuItem" id="editProductMenuItem" onclick="location.href='?cat&act=editProduct'">
    <?= CatalogMenu::EDIT_PROD?>
  </div>
  <div class="catalogMenuItem" id="addFieldMenuItem" onclick="location.href='?cat&act=addField'">
    <?= CatalogMenu::ADD_FIELD?>
  </div>
</div>